package com.erp.gather.domain.bo;

import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品侵权词业务对象 erp_seller_store_product_infringing_keywords_record
 *
 * @author erp
 * @date 2023-12-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStoreProductInfringingKeywordsRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 记录名称
     */
    @NotBlank(message = "记录名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String recordName;

    /**
     * 记录地址
     */
    @NotBlank(message = "记录地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String recordUrl;

    /**
     * 状态 0-生成中 1-已生成
     */
    @NotBlank(message = "状态 0-生成中 1-已生成不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 类型 0-公共采集库标题 1-公共采集库详情 2-个人采集库标题 3-个人采集库详情
     */
    @NotNull(message = "类型 0-公共采集库标题 1-公共采集库详情 2-个人采集库标题 3-个人采集库详情不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
